﻿namespace Script.Function.Posion.Data
{
    public class CardData
    {
        private int _number;
        /// <summary>
        /// 牌的数字
        /// </summary>
        public int Number
        {
            get { return _number; }
        }

        private CardColorType _color;
        /// <summary>
        /// 牌的牌面颜色
        /// </summary>
        public CardColorType Color
        {
            get { return _color; }
        }

        public CardData(CardColorType color, int number)
        {
            _color = color;
            _number = number;
        }

        public override string ToString()
        {
            return Color + Number.ToString();
        }
    }
}